package com.centling.smartSealForPhone.activity

import android.os.Bundle
import android.webkit.WebViewClient
import com.centling.smartSealForPhone.R
import kotlinx.android.synthetic.main.activity_instruction.*

class InstructionActivity : TitleBarActivity() {

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_instruction)
        setTitleBarText("使用说明")

        val webSettings = instruction_webview.settings
        webSettings.javaScriptEnabled = true

        instruction_webview.loadUrl("file:///android_asset/README_Phone/README_Phone.html")

        instruction_webview.setWebViewClient(WebViewClient())
    }
}
